package com.ittx.dzt.ali.health.handler;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.ittx.dzt.business.PlatformConstant;
import com.ittx.dzt.edi.handler.AbstractBasePlatformApiHandler;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author wl_code@163.com
 * @version 1.0
 * @date 2025/2/7
 */
@Slf4j
public abstract class AbstractBaseAliHealthApiHandler<T> extends AbstractBasePlatformApiHandler<T> {

	@Override
	public String getPlatformCode() {
		return PlatformConstant.ALI_HEALTH;
	}

	public Date parseDateTime(String timeStr) {
		if (StrUtil.isNotEmpty(timeStr)) {
			return DateUtil.parseDateTime(timeStr);
		}
		return null;
	}
}
